package cn.mst.vrs.convert;

import cn.mst.vrs.controller.admin.venuetype.vo.VenueTypeDictRespVO;
import cn.mst.vrs.dal.dataobject.venuetype.VenueTypeDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface VenueTypeConvert {
    VenueTypeConvert INSTANCE = Mappers.getMapper(VenueTypeConvert.class);

    @Mapping(target = "value", source = "id")
    @Mapping(target = "label", source = "name")
    VenueTypeDictRespVO toDictRespVO(VenueTypeDO entity);

    List<VenueTypeDictRespVO> toDictRespVOList(List<VenueTypeDO> entityList);
}
